//
//  RecommendUserTableViewCell.m
//  Baisibudejie
//
//  Created by yu hu on 2017/3/22.
//  Copyright © 2017年 yu hu. All rights reserved.
//

#import "RecommendUserTableViewCell.h"
#import "RecommendUser.h"
#import <UIImageView+WebCache.h>
@interface RecommendUserTableViewCell()
// 头像
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
// 昵称
@property (weak, nonatomic) IBOutlet UILabel *screenNameLabel;
// 粉丝数
@property (weak, nonatomic) IBOutlet UILabel *fansLabel;

@end

@implementation RecommendUserTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setRecommendUser:(RecommendUser *)recommendUser
{
    _recommendUser = recommendUser;
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:recommendUser.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    self.screenNameLabel.text = recommendUser.screen_name;
    self.fansLabel.text = [NSString stringWithFormat:@"%zd",recommendUser.fans_count];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
